package com.chuisha.consumer.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.chuisha.api.IHelloService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @DubboReference
    private IHelloService helloService;

    @GetMapping("say")
    public String sayHello(){
        return helloService.sayHello("Mic");
    }
}
